package com.xxl.job.executor.service.jobhandler;

import com.godtree.service.IRankDataMappingService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @author lisicheng
 * @date 20230407
 */
@Component
@RequiredArgsConstructor
public class RankDataMappingJob {

  private final IRankDataMappingService rankDataMappingService;

  /**
   * 刷新映射数据
   * <p></p>
   * 通过定时任务，每天凌晨1点刷新一次映射数据
   */
  @XxlJob("refreshRankDataMappingJob")
  public void refreshRankDataMapping() {
    rankDataMappingService.refreshRankDataMapping();
  }

}
